package com.nbsaas.boot.data.data.entity;

import com.nbsaas.boot.code.annotation.CatalogClass;
import com.nbsaas.boot.code.annotation.FormAnnotation;
import com.nbsaas.boot.code.annotation.NoSimple;
import com.nbsaas.boot.data.ext.domain.ext.QueryTemplateExt;
import com.nbsaas.boot.jpa.data.entity.AbstractEntity;
import lombok.Data;
import org.hibernate.annotations.Comment;
import org.hibernate.annotations.Type;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;


@org.hibernate.annotations.Table(appliesTo = "sys_common_query_snippet_param", comment = "代码参数")
@Data
@FormAnnotation(title = "代码参数")
@Entity
@Table(name = "sys_common_query_snippet_param")
public class QuerySnippetParam extends AbstractEntity {

    @Comment("名称")
    private String name;


    @NoSimple
    @Type(type = "io.hypersistence.utils.hibernate.type.json.JsonType")
    @Comment("参数配置")
    @Column(columnDefinition = "json")
    private QueryTemplateExt extData;
}
